package com.fc.mall.model;

import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

@Data
public class PmsProductBargain implements Serializable {
    private Long id;

    /**
     * 商品信息
     *
     * @mbggenerated
     */
    private Long productId;

    /**
     * 活动价
     *
     * @mbggenerated
     */
    private BigDecimal activityPrice;

    /**
     * 邀请几人砍价
     *
     * @mbggenerated
     */
    private Integer joinCount;

    /**
     * 砍价区间，最多砍多少
     *
     * @mbggenerated
     */
    private BigDecimal bargainSection;

    /**
     * 发起砍价持续时间
     *
     * @mbggenerated
     */
    private Integer activeMin;

    /**
     * 已发起砍价人数
     *
     * @mbggenerated
     */
    private Integer totalCount;

    /**
     * 状态
     *
     * @mbggenerated
     */
    private Integer status;

    /**
     * 限购数量
     *
     * @mbggenerated
     */
    private Integer limitCount;

    /**
     * 过期时间
     *
     * @mbggenerated
     */
    private Integer expiredTime;

    /**
     * 起始时间
     *
     * @mbggenerated
     */
    private Integer effectTime;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", productId=").append(productId);
        sb.append(", activityPrice=").append(activityPrice);
        sb.append(", joinCount=").append(joinCount);
        sb.append(", bargainSection=").append(bargainSection);
        sb.append(", activeMin=").append(activeMin);
        sb.append(", totalCount=").append(totalCount);
        sb.append(", status=").append(status);
        sb.append(", limitCount=").append(limitCount);
        sb.append(", expiredTime=").append(expiredTime);
        sb.append(", effectTime=").append(effectTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}